<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>Drupal</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style>
            body{
                background-color:  #f7fafc;
                margin: 0px;
            }
            .title{
                text-align: center;
                margin-top: 100px;
            }
            .body{
                text-align: center;
                margin-top: 50px;
            }
            a{
                text-decoration: none;
                font-size: 25px;                
            }
            a.login{
                 border-bottom: 2px solid #0f88eb;
                color: #0f88eb;
            }
                  
            
        
            input{
                line-height: 19px;
                padding: 14px 11.2px;
                width: 240px;
                font-size: 14px;
                border: 1px solid #d5d5d5;
                border-radius: 3px;
                /*outline: none;*/
            }
            .submit{
                    background: #0f88eb;
                    width: 264.4px;
                    cursor: pointer;
                    font-size: 16px;
                    color: #fff;
                 
                    position: relative;
                   
            }
            .submit:hover{
                background: #55abed;
            }
            .choose{
                margin: 20px auto;
            }
            .image{                 
                    height: 45px;                  
            }
            .form{
                position: relative;
            }
            .book{
                    display: inline-block;
                    position: relative;
                    top: -47px;
                    right: -84px;
            }
        </style>
    </head>
    <body>
        <div>
            <h1 class="title">欢迎使用Drupal后台管理系统</h1>
        </div>
        <div class="body">
            <div class="choose">
                <span><a href="<?php print U('Admin/user/login');?>" class='login'>登录</a></span>
                <span><a href="<?php print U('Admin/user/add')?>">注册</a></span>
            </div>
            <form class="form" action="<?php echo U('User/dologin');?>" method='post'>
                <input type="text" name="name" placeholder="账号"/><br/>
                <input type="password" name="pass" placeholder="密码"/><br/>
                <input type="text" name="captcha"  placeholder="验证码"/><br/> 
                <div class='book'>
                    <img class=image src="<?php echo U('admin/user/captcha');?>"> 
                </div>
                <div>
                    <input  class="submit" type="submit" value="登录"/>
                </div>
            </form>
        </div>              
    </body>
</html>